package net.game.server.game.player;

import net.game.server.game.Entity;
import net.game.server.game.Position;
import org.jboss.netty.channel.Channel;

public class Player implements Entity {
    private String username;
    private String password;
    private byte rights;
    private int index;
    private Position position;
    private Channel channel;
    
    public Player(String username, String password, byte rights, Position position, Channel channel) {
        this.username = username;
        this.password = password;
        this.rights = rights;
        this.position = position;
        this.channel = channel;
    }
    
    public String getUsername() {
        return username;
    }
    
    public String getPassword() {
        return password;
    }
    
    public byte getRights() {
        return rights;
    } 

    @Override
    public void setIndex(int idx) {
        index = idx;
    }

    @Override
    public int index() {
        return index;
    }

    @Override
    public Position position() {
        return position;
    }

    @Override
    public Channel channel() {
        return channel;
    }
}
